<?php

namespace app\model\music;

use app\BaseModel;
use think\model\relation\BelongsTo;

/**
 * 音乐
 */
class MusicModel extends BaseModel
{
    protected $name = 'music';

    /**
     * 类型
     */
    public function Type(): BelongsTo
    {
        return $this->belongsTo(MusicTypeModel::class,'type_id')->bind([
            'type_name' => 'name',
        ]);
    }
}